package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 对象 hc_consumables_info
 *
 * @author ruoyi
 * @date 2023-05-04
 */
public class HcConsumablesInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long id;

    /** 耗材编号 */
    @Excel(name = "耗材编号")
    private String code;

    /** 耗材名称 */
    @Excel(name = "耗材名称")
    private String name;

    /** 规格 */
    @Excel(name = "规格")
    private String guige;

    /** 型号 */
    @Excel(name = "型号")
    private String xinghao;

    /** 类别 */
    @Excel(name = "类别")
    private String type;

    /** 供应商 */
    @Excel(name = "供应商")
    private String supplier;

    /** 单价 */
    @Excel(name = "单价")
    private Long price;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long total;

    /** 预警线 */
    @Excel(name = "预警线")
    private Long warnum;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date prodate;

    /** 截止有效期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截止有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date timelimit;

    /** 条形码 */
    @Excel(name = "条形码")
    private String tiaoxing;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setGuige(String guige)
    {
        this.guige = guige;
    }

    public String getGuige()
    {
        return guige;
    }
    public void setXinghao(String xinghao)
    {
        this.xinghao = xinghao;
    }

    public String getXinghao()
    {
        return xinghao;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setSupplier(String supplier)
    {
        this.supplier = supplier;
    }

    public String getSupplier()
    {
        return supplier;
    }
    public void setPrice(Long price)
    {
        this.price = price;
    }

    public Long getPrice()
    {
        return price;
    }
    public void setTotal(Long total)
    {
        this.total = total;
    }

    public Long getTotal()
    {
        return total;
    }
    public void setWarnum(Long warnum)
    {
        this.warnum = warnum;
    }

    public Long getWarnum()
    {
        return warnum;
    }
    public void setProdate(Date prodate)
    {
        this.prodate = prodate;
    }

    public Date getProdate()
    {
        return prodate;
    }
    public void setTimelimit(Date timelimit)
    {
        this.timelimit = timelimit;
    }

    public Date getTimelimit()
    {
        return timelimit;
    }
    public void setTiaoxing(String tiaoxing)
    {
        this.tiaoxing = tiaoxing;
    }

    public String getTiaoxing()
    {
        return tiaoxing;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("code", getCode())
                .append("name", getName())
                .append("guige", getGuige())
                .append("xinghao", getXinghao())
                .append("type", getType())
                .append("supplier", getSupplier())
                .append("price", getPrice())
                .append("total", getTotal())
                .append("warnum", getWarnum())
                .append("prodate", getProdate())
                .append("timelimit", getTimelimit())
                .append("tiaoxing", getTiaoxing())
                .toString();
    }
}
